home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / Small Eiffel 0.4.8 / man / finder.hlp < prev    next >
Text File  |  1997-04-13  |  2KB  |  52 lines

  1. finder <Class>
  2.  
  3. Command `finder' tells you which file is loaded when searching
  4. for an Eiffel <Class>.
  5. When an Eiffel file is found, `finder' prints the full path name.
  6. The exit status is set to a good value.
  7.  
  8. To see the loading path used by SmallEiffel, you can for example
  9. type the `finder' command using a bad (inexistant) class name.
  10. The default loading path may be updated (see READ_ME file of
  11. the `sys' directory).
  12.  
  13. Without argument, `finder' command prints this help.
  14.  
  15. The algorithm used by SmallEiffel to search for an Eiffel
  16. source file has two major steps.
  17.  
  18. 1- First Step - SmallEiffel looks all along the loading path using
  19. <class> name in lower case as tail. If needed, the Eiffel 
  20. suffix (".e") is added automatically. SmallEiffel only looks for 
  21. suffixed files on the disk. Only the first file encountered 
  22. according to the order of the path is taken in account.
  23. File is always supposed to have the same name as the inside 
  24. class definition. 
  25.  
  26. 2 - Second Step - : is done only when first step has failed to find 
  27. a file. SmallEiffel tries to search for files "rename.se" in all 
  28. directories of the path.
  29. A file "rename.se" allows the user to put in file "foo" the class
  30. "bar" for example.
  31. Such renaming facilities has been added especially for DOS (file
  32. manes is limited to 8 characters).
  33. Each line of a "rename.se" file is a renaming directive containing
  34. two names, first the full name and then the short name to use in the
  35. directory where the "rename.se" file is.
  36. File "SmallEiffel/misc/rename.se" is an example of a "rename.se" file
  37. to put in SmallEiffel/lib_std/ for DOS.
  38.  
  39. Thus, knowing the algorithm of SmallEiffel to find a class file, it is
  40. better not to use the renaming facilities to speed up class loading. 
  41.  
  42. -- Changing the default loading path --
  43. To change the default loading path, you need to add a special 
  44. file which name is "loadpath.se" in the directoy you type a  
  45. command of SmallEiffel (`compile', `finder', `pretty', ...).
  46. Each line of the file "loadpath.se" must be an existing 
  47. directory path.
  48. All directories of file "loadpath.se" are prepend to the default 
  49. loading path.
  50.  
  51.  
  52.